package com.dragon.modules.yuegou.entity.product;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 商品参数信息表实体类<br>
 * 对应的表为：pro_param<br>
 * 
 * @author px
 * @date 2019-03-29 16:06:34
 * @company sgy
 * @version 2.0
 */
@TableName("pro_param")
@ApiModel(description = "商品参数信息表")
public class ParamEntity {

    /**  */
	protected String id;

    /**  */
	protected String spuId;

    /** 属性ID */
	@ApiModelProperty("属性ID")
	protected String attributeId;

    /** 属性名称 */
	@ApiModelProperty("属性名称")
	protected String attributeName;

    /** 参数值 */
	@ApiModelProperty("参数值")
	protected String paramValue;

    /** 属性解释 */
	@ApiModelProperty("属性解释")
	protected String explanation;

    /** 创建时间 */
	@ApiModelProperty("创建时间")
	protected LocalDateTime createdTime;

	/**
	 * 构造一个空商品参数信息表实体对象
	 */
	public ParamEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个商品参数信息表实体对象
	 * 
	 * @param other 其它对象
	 */
	public ParamEntity(ParamEntity other){
		super();
     	this.id = other.id;
     	this.spuId = other.spuId;
     	this.attributeId = other.attributeId;
     	this.attributeName = other.attributeName;
     	this.paramValue = other.paramValue;
     	this.explanation = other.explanation;
     	this.createdTime = other.createdTime;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取
	 * 
	 * @return spuId 
	 */
	public String getSpuId() {
		return spuId;
	}
  	
	/**
	 * 设置
	 * 
	 * @param spuId 
	 */
	public void setSpuId(String spuId) {
		this.spuId = spuId;
	}

	/**
	 * 获取属性ID
	 * 
	 * @return attributeId 属性ID
	 */
	public String getAttributeId() {
		return attributeId;
	}
  	
	/**
	 * 设置属性ID
	 * 
	 * @param attributeId 属性ID
	 */
	public void setAttributeId(String attributeId) {
		this.attributeId = attributeId;
	}

	/**
	 * 获取属性名称
	 * 
	 * @return attributeName 属性名称
	 */
	public String getAttributeName() {
		return attributeName;
	}
  	
	/**
	 * 设置属性名称
	 * 
	 * @param attributeName 属性名称
	 */
	public void setAttributeName(String attributeName) {
		this.attributeName = attributeName;
	}

	/**
	 * 获取参数值
	 * 
	 * @return paramValue 参数值
	 */
	public String getParamValue() {
		return paramValue;
	}
  	
	/**
	 * 设置参数值
	 * 
	 * @param paramValue 参数值
	 */
	public void setParamValue(String paramValue) {
		this.paramValue = paramValue;
	}

	/**
	 * 获取属性解释
	 * 
	 * @return explanation 属性解释
	 */
	public String getExplanation() {
		return explanation;
	}
  	
	/**
	 * 设置属性解释
	 * 
	 * @param explanation 属性解释
	 */
	public void setExplanation(String explanation) {
		this.explanation = explanation;
	}

	/**
	 * 获取创建时间
	 * 
	 * @return createdTime 创建时间
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

    public String toString() {
		return new StringBuilder().append("ParamEntity{").
			append("id=").append(id).
			append(",spuId=").append(spuId).
			append(",attributeId=").append(attributeId).
			append(",attributeName=").append(attributeName).
			append(",paramValue=").append(paramValue).
			append(",explanation=").append(explanation).
			append(",createdTime=").append(createdTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public ParamEntity copy() {
		return new ParamEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /**  */
	public static final String COL_SPU_ID = "spu_id";

    /** 属性ID */
	public static final String COL_ATTRIBUTE_ID = "attribute_id";

    /** 属性名称 */
	public static final String COL_ATTRIBUTE_NAME = "attribute_name";

    /** 参数值 */
	public static final String COL_PARAM_VALUE = "param_value";

    /** 属性解释 */
	public static final String COL_EXPLANATION = "explanation";

    /** 创建时间 */
	public static final String COL_CREATED_TIME = "created_time";
}
